package com.domain;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

/**
 * @Author Ms.发发
 * @ClassName CleanManageCanacelEntity
 * @Date 2025/2/18 10:33
 * @Description
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("baojiequxiaoguanli")
public class CleanManageCancelEntity<T> extends BaseEntity {

    public CleanManageCancelEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    /**
     * 主键id
     */
    @TableId
    private Long id;


    /**
     * 取消保洁时间
     */

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date cancelCleanTime;

    /**
     * 取消原因
     */

    private String cancelReason;

}
